package com.zzedu.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzedu.domain.ZzSendMsg;
import com.zzedu.dto.ZzSendMsgDTO;

import java.time.LocalDateTime;

/**
 * 短信发送记录Service接口
 *
 * @author Mr.Wang
 * @date 2025-03-07
 */
public interface IZzSendMsgService extends IService<ZzSendMsg> {
    /**
     * 构造查询条件
     */
    public LambdaQueryWrapper<ZzSendMsg> buildQuery(ZzSendMsgDTO zzSendMsgDTO);

    /**
     * 一段时间内短信数量
     *
     * @param tel
     * @param localDateTime
     * @param now
     * @return
     */
    Long getCountByPhone(String tel, LocalDateTime localDateTime, LocalDateTime now);
}
